import QtQuick 2.0
import QtQuick.Layouts 1.3

Text {
    id : root
    signal clicked
    property alias pxSize: root.font.pixelSize
    property alias fontFamily:root.font.family
    property bool bold
    property alias pt: root.font.pointSize
    property alias underLine: root.font.underline

    property  color textColor:"blue"

    property  bool isEnter

    color: textColor
    //font.pixelSize:24
    font.bold: true

    linkColor:"blue"
    textFormat:Text.RichText
    font.underline: true
    Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
    //elide: Text.ElideRight

    MouseArea{
        anchors.fill: parent
        hoverEnabled: true
        cursorShape: (root.isEnter)?  Qt.PointingHandCursor : Qt.ArrowCursor
        onClicked: {
            emit:root.clicked()
        }
        onEntered: {
            isEnter = true
        }
        onExited: {
            isEnter = false
        }
    }
}

/*##^## Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
 ##^##*/
